<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="CityFly" xmlns:page="urn:page">
  <xsl:param name="param"/>
  <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  <msxsl:script language="javascript" implements-prefix="user">function numOptions(fS,fE,fV){
    var str ='';
    for(var i=int(fS);i&lt;=int(fE);i++){
    str=str+"&lt;option"
    if(i==fV){str=str+" selected='1' "}
    var val ='';
    for(var j=i.toString().length;j&lt;fS.toString().length;j++){
    val = '0' + val;
    }
    str=str+" value='"+val+i+"'&gt;"+val+i+"&lt;/option&gt;";
    }
    return str;
    }
    function monthOptions(fS,fE,fV){
    var str ='';
    for(var i=int(fS);i&lt;=int(fE);i++){
    str=str+"&lt;option"
    if((i*30)==fV){str=str+" selected='1' "}
    var val ='月';
    str=str+" value='"+i*30+"'&gt;"+i+val+"&lt;/option&gt;";
    }
    return str;
    }
    function yearOptions(fS,fE,fV){
    var str ='';
    for(var i=int(fS);i&lt;=int(fE);i++){
    str=str+"&lt;option"
    if(i==fV){str=str+" selected='1' "}
    if(i==1988){val ='年前'; str=str+" value='1'&gt;"+i+val+"&lt;/option&gt;";}
    else {var val ='年'; str=str+" value='"+i+"'&gt;"+i+val+"&lt;/option&gt;";}
    }
    return str;
    }</msxsl:script>
  <xsl:template match="/">
    <xsl:variable name="house"><xsl:if test="$param='rent'">出租</xsl:if><xsl:if test="$param='rentin'">求租</xsl:if><xsl:if test="$param='sell'">出售</xsl:if><xsl:if test="$param='buy'">求购</xsl:if></xsl:variable>
    <xsl:variable name="xml"><xsl:if test="$param='rent'">rentout</xsl:if><xsl:if test="$param!='rent'"><xsl:value-of select="$param"/></xsl:if></xsl:variable>
    <input type="hidden" id="param" value="{$param}"/>
      <form id="form1">
        <input name="editID" type="hidden">
        <xsl:attribute name="value"> <xsl:if test="count(rows/row)=0"> 0 </xsl:if> <xsl:if test="count(rows/row)!=0"> <xsl:value-of select="rows/row/ID"/> </xsl:if> </xsl:attribute>
        </input>
        <input name="{$xml}_PubTime" type="hidden">
        <xsl:attribute name="value"><xsl:value-of select="rows/row/F_PubTime"/> <xsl:if test="count(rows/row)=0"> <xsl:value-of select="page:xNow('')"/> </xsl:if> </xsl:attribute>
        </input>
        <input name="f" type="hidden" value="@{$house}房源"/>
        <div class="publist">
          <!--基本资料-->
          <div style="border:1px solid #f7ce5a; margin:5px 0 0">
            <div class="f1"><b>基本资料</b></div>
            <xsl:if test="$param='rent' or $param='sell'">
              <div class="f2">
                <div class="left"><span class="t1">*</span>房 型：</div>
                <div class="right">
                  <select name="{$xml}_Type" id="HouseType" size="1">
                    <xsl:if test="count(rows/row/F_Type)=0"><xsl:value-of select="page:xLoadList('类型',0,13)" disable-output-escaping="yes"/></xsl:if> <xsl:if test="count(rows/row/F_Type)!=0"><xsl:value-of select="page:xLoadList('类型',0,rows/row/F_Type)" disable-output-escaping="yes"/></xsl:if>
                  </select>
                  <span class="t5">1-7层为多层住宅，8-12层为小高层，13层以上为高层 </span></div>
              </div>
              <div class="f2" id="line_layout">
                <div class="left"><span class="t1">*</span>户 型：</div>
                <div class="right">
                  <select name="{$xml}Style1">
                    <xsl:value-of select="user:numOptions(0,9,string(substring(rows/row/F_Style,1,1)))" disable-output-escaping="yes"/>
                  </select>
                  室
                  <select name="{$xml}Style2">
                    <xsl:value-of select="user:numOptions(0,9,string(substring(rows/row/F_Style,2,1)))" disable-output-escaping="yes"/>
                  </select>
                  厅
                  <select name="{$xml}Style3">
                    <xsl:value-of select="user:numOptions(0,9,string(substring(rows/row/F_Style,3,1)))" disable-output-escaping="yes"/>
                  </select>
                  卫
                  <select name="{$xml}Style4">
                    <xsl:value-of select="user:numOptions(0,9,string(substring(rows/row/F_Style,4,1)))" disable-output-escaping="yes"/>
                  </select>
                  阳台</div>
              </div>
            </xsl:if>
            <div class="f2" id="line_title">
              <div class="left"><span class="t1">*</span>标 题：</div>
              <div class="right">
                <input type="text" value="{rows/row/F_Title}" name="{$xml}_Title"/>
              </div>
            </div>
            <div class="f2">
              <div class="left"><span class="t1">*</span>区 域：</div>
              <div class="right">
                <div class="fl">
                  <select name="{$xml}_RegionCode">
                    <xsl:value-of select="page:xLoadList('区域',0,rows/row/F_RegionCode)" disable-output-escaping="yes"/>
                  </select>
                </div>
                <div class="fl">  靠近地段/小区： 
                  <input size="21" maxlength="20" value="{rows/row/F_Garden}" name="{$xml}_Garden"/>
                  &nbsp;<span class="t5">没有小区可不填 </span> </div>
              </div>
            </div>
            <xsl:if test="$param='rent' or $param='sell'">
              <div class="f2">
                <div class="left"><span class="t1">*</span>具体地址：</div>
                <div class="right">
                  <input size="49" value="{rows/row/F_Addr}" name="{$xml}_Addr" id="Addr"/>
                </div>
              </div>
            </xsl:if>
            <xsl:if test="$param='rent'">
              <div class="f2" id="line_RentType">
                <div class="left"><span class="t1">*</span>租赁方式：</div>
                <div class="right">
                  <input type="radio"  value="1" name="{$xml}_Mode">
                  <xsl:if test="contains(string(rows/row/F_Mode),'1') or count(rows/row/F_Mode)=0">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                  整租&nbsp;&nbsp;
                  <input type="radio"  value="0" name="{$xml}_Mode">
                  <xsl:if test="contains(string(rows/row/F_Mode),'0')">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                  合租&nbsp;[
                  <input type="radio" value="0" name="{$xml}_RequireSex">
                  <xsl:if test="contains(string(rows/row/F_RequireSex),'0')">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                  限女性
                  <input type="radio"  value="1" name="{$xml}_RequireSex">
                  <xsl:if test="contains(string(rows/row/F_RequireSex),'1')">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                  限男性
                  <input type="radio" value="2" name="{$xml}_RequireSex">
                  <xsl:if test="contains(string(rows/row/F_RequireSex),'2') or count(rows/row/F_Mode)=0">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                  性别不限&nbsp;]</div>
              </div>
            </xsl:if>
            <div class="f2">
              <div class="left"><span class="t1">*</span> <xsl:if test="$param='rent' or $param='rentin'"> 租 金 </xsl:if> <xsl:if test="$param='sell' or $param='buy'"> 总 价 </xsl:if> ：</div>
              <div class="right">
                <input id="myPrice" size="7" maxlength="7" value="{rows/row/F_Price}" name="{$xml}_Price" style="ime-mode:disabled">
                <xsl:if test="$param='sell'">
                  <xsl:attribute name="onchange">$('avgPrice').innerHTML=countAvgPrice(this,'myArea');</xsl:attribute>
                </xsl:if>
                </input>
                &nbsp; <xsl:if test="$param='rent' or $param='rentin'">
                  <select name="{$xml}_PriceUnit">
                    <xsl:value-of select="page:xLoadList('求租价',0,rows/row/F_PriceUnit)" disable-output-escaping="yes"/>
                  </select>
                </xsl:if> <xsl:if test="$param='sell'"> <b>万元</b>(<span id="avgPrice">0</span>元/M<sup>2</sup>)
                  &nbsp;&nbsp;价格条件：
                  <select name="sell_PriceCondition">
                    <option value="1"> <xsl:if test="rows/row/F_PriceCondition=1">
                      <xsl:attribute name="selected">true</xsl:attribute>
                    </xsl:if> 净价 </option>
                    <option value="2"> <xsl:if test="rows/row/F_PriceCondition=2">
                      <xsl:attribute name="selected">true</xsl:attribute>
                    </xsl:if> 各自付税</option>
                  </select>
                </xsl:if> <xsl:if test="$param='buy'"> 万左右 </xsl:if> &nbsp;&nbsp;价格描述：
                <select name="{$xml}_PriceType" id="PriceType">
                  <xsl:value-of select="page:xLoadList('价格描述',0,rows/row/F_PriceType)" disable-output-escaping="yes"/>
                </select>
              </div>
            </div>
            <div class="f2">
              <div class="left"><span class="t1">*</span>房源来源：</div>
              <div class="right"> <xsl:if test="page:xLogin('F_Mode')='1' or rows/row/F_IsShop='1'">
                  <input name="{$xml}_isshop" type="radio" onclick="displayAgency(1)" value="1" checked="checked"/>
                  <span class="t1">中介</span>&nbsp;<span id="line_AgencyId">(房源编号：
                  <input name="{$xml}_Shop_House_ID" maxlength="20" onKeyUp="value=value.replace(/[^a-zA-Z0123456789.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^a-zA-Z0123456789.]/g,''))" size="8" value="{rows/row/F_Shop_House_ID}" />
                  ) </span> </xsl:if> <xsl:if test="rows/row/F_IsShop='0' or page:xLogin('F_Mode')='0' ">
                  <input name="{$xml}_isshop" onclick="displayAgency(0)" type="radio" value="0" checked="checked"/>
                  个人</xsl:if></div>
            </div>
            <input type="hidden" value="0" name="{$xml}_Shop_IsFree"/>
            <div class="f2 nobg">
              <div class="left"><span class="t1">*</span>有效期限：</div>
              <div class="right"> <xsl:if test="$param!='sell'">
                  <select name="{$xml}_ValidDays">
                    <xsl:value-of select="user:monthOptions(1,3,string(rows/row/F_ValidDays))" disable-output-escaping="yes"/>
                  </select>
                </xsl:if> <xsl:if test="$param='sell'">
                  <div class="fl">一个月<span class="t5">您的房源将在一个月后过期</span></div>
                </xsl:if> </div>
            </div>
          </div>
          <!--补充资料-->
          <div style="border:1px solid #f7ce5a ;margin:5px 0 0">
            <div class="f1 t1"><b>补充资料</b><span class="t1 f3">填写更多资料可以增加成交机会</span></div>
            <div id="recentlyClosedTabs"> <xsl:if test="$param!='sell' and page:xLogin('F_Mode')='0'">
                <div class="f2">
                  <div class="left">接受中介：</div>
                  <div class="right">
                    <input type="radio" name="{$xml}_IsOnline" value="1">
                    <xsl:if test="rows/row/F_IsOnline='1'">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    &nbsp; 
                    是  &nbsp; /  &nbsp;
                    <input type="radio" name="{$xml}_IsOnline" value="0">
                    <xsl:if test="rows/row/F_IsOnline='0'">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    &nbsp;否<span class="t5">委托中介<xsl:value-of select="$house"/>房源</span> </div>
                </div>
              </xsl:if> <xsl:if test="$param='rentin'">
                <div class="f2" id="line_RentType">
                  <div class="left"><span class="t1">*</span>租赁方式：</div>
                  <div class="right">
                    <input type="radio"  value="1" name="{$xml}_Mode">
                    <xsl:if test="contains(string(rows/row/F_Mode),'1') or count(rows/row/F_Mode)=0">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    整租&nbsp;&nbsp;
                    <input type="radio"  value="0" name="{$xml}_Mode">
                    <xsl:if test="contains(string(rows/row/F_Mode),'0')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    合租&nbsp;[
                    <input type="radio" value="0" name="{$xml}_RequireSex">
                    <xsl:if test="contains(string(rows/row/F_RequireSex),'0')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    限女性
                    <input type="radio"  value="1" name="{$xml}_RequireSex">
                    <xsl:if test="contains(string(rows/row/F_RequireSex),'1')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    限男性
                    <input type="radio" value="2" name="{$xml}_RequireSex">
                    <xsl:if test="contains(string(rows/row/F_RequireSex),'2') or count(rows/row/F_Mode)=0">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    性别不限&nbsp;]</div>
                </div>
              </xsl:if> <xsl:if test="$param='rent' or $param='sell'">
                <div class="f2" id="line_floor">
                  <div class="left">楼 层：</div>
                  <div class="right">
                    <input size="5" value="{rows/row/F_Floor}" name="{$xml}_Floor"/>
                    /
                    <input size="5" value="{rows/row/F_FloorMax}" name="{$xml}_FloorMax"/>
                    &nbsp;<span class="t5">楼层/总楼层</span></div>
                </div>
              </xsl:if> <xsl:if test="$param!='rentin'">
                <div class="f2">
                  <div class="left">建筑面积：</div>
                  <div class="right">
                    <input id="myArea" type="text" size="5" style="ime-mode:disabled" name="{$xml}_Area" onkeyup="value=value.replace(/[^0123456789.]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^0123456789.]/g,''))">
                    <xsl:attribute name="value"><xsl:value-of select="rows/row/F_Area"/> <xsl:if test="count(rows/row)=0"> 0 </xsl:if> </xsl:attribute>
                    <xsl:if test="$param='sell'">
                      <xsl:attribute name="onchange">$('avgPrice').innerHTML=countAvgPrice('myPrice',this);</xsl:attribute>
                    </xsl:if>
                    </input>
                    &nbsp;平方米左右 </div>
                </div>
              </xsl:if> <xsl:if test="$param='sell'">
                <div class="f2" >
                  <div class="left">使用面积：</div>
                  <div class="right">
                    <input type="text" size="10" name="sell_UseArea" value="{rows/row/F_UseArea}" style="ime-mode:disabled" />
                    平方米 </div>
                </div>
              </xsl:if> <xsl:if test="$param='sell' or $param='buy'">
                <div class="f2">
                  <div class="left">房屋朝向：</div>
                  <div class="right">
                    <select name="{$xml}_Direction">
                      <xsl:value-of select="page:xLoadList('朝向要求',0,string(rows/row/F_Direction))" disable-output-escaping="yes"/>
                    </select>
                  </div>
                </div>
                <div class="f2">
                  <div class="left">房屋产权：</div>
                  <div class="right">
                    <select name="{$xml}_Ownership">
                      <option value="0">*  请选择 *</option>
                      <xsl:value-of select="page:xLoadList('房屋产权',0,rows/row/F_Ownership)" disable-output-escaping="yes"/>
                    </select>
                  </div>
                </div>
                <div class="f2">
                  <div class="left">建筑年代：</div>
                  <div class="right">
                    <select name="{$xml}_Year" id="Year">
                      <option value="0">*  请选择 *</option>
                      <xsl:value-of select="user:yearOptions(1988,2008,string(rows/row/F_Year))" disable-output-escaping="yes"/>
                    </select>
                    &nbsp;以后 </div>
                </div>
              </xsl:if> <xsl:if test="$param='sell'">
                <div class="f2">
                  <div class="left">产权证号：</div>
                  <div class="right">
                    <input type="text" size="25" name="sell_OwnershipNumber" value="{rows/row/F_OwnershipNumber}"/>
                    &nbsp; &nbsp; 
                    产权人姓名：
                    <input type="text" size="10" name="sell_OwnershipName" value="{rows/row/F_OwnershipName}"/>
                    &nbsp;<span class="t5">产权信息对外绝对保密，只做审核用</span> </div>
                </div>
              </xsl:if><xsl:if test="$param='buy'">
                <div class="f2" id="line_floor">
                  <div class="left">楼层要求：</div>
                  <div class="right">
                    <input size="5" value="{rows/row/F_Floor}" name="{$xml}_Floor"/>
                    <span class="t5">层</span></div>
                </div>
              </xsl:if>
              <div class="f2">
                <div class="left">地域圈范围：</div>
                <div class="right">
                  <input type="text" name="{$xml}_RegionArea" value="{rows/row/F_RegionArea}"/>
                </div>
              </div>
              <a id="img" name="img">
              <xsl:comment/>
              
              </a> <xsl:if test="$param='rent' or $param='sell'">
                <div class="f2">
                  <div class="left">房源图片：</div>
                  <div class="right">
                  <xsl:variable name="Image1" select="page:xSplit(string(rows/row/F_Images),'|',0)"/>  <xsl:variable name="Image2" select="page:xSplit(string(rows/row/F_Images),'|',1)"/>  <xsl:variable name="Image3" select="page:xSplit(string(rows/row/F_Images),'|',2)"/>
                    <input type="text" style="width:350px" name="{$param}_Images1" value="{$Image1}" id="inputPhoto1" onclick="TM.FileSelect('inputPhoto1',this,'File Select')"/>
                    <br />
                    <input type="text" style="width:350px" name="{$param}_Images2" value="{$Image2}" id="inputPhoto2" onclick="TM.FileSelect('inputPhoto2',this,'File Select')"/>
                    <br />
                    <input type="text" style="width:350px" name="{$param}_Images3" value="{$Image3}" id="inputPhoto3" onclick="TM.FileSelect('inputPhoto3',this,'File Select')"/>
                  </div>
                </div>
                <div class="f2" id="line_decoration">
                  <div class="left">装修程度：</div>
                  <div class="right">
                    <input name="{$xml}_Decoration" type="radio" value="0">
                    <xsl:if test="contains(string(rows/row/F_Decoration),'0')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    尚未装修
                    <input name="{$xml}_Decoration" type="radio" value="1">
                    <xsl:if test="contains(string(rows/row/F_Decoration),'1')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    简易装修
                    <input name="{$xml}_Decoration" type="radio" value="2">
                    <xsl:if test="contains(string(rows/row/F_Decoration),'2')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    中档装修
                    <input name="{$xml}_Decoration" type="radio" value="3">
                    <xsl:if test="contains(string(rows/row/F_Decoration),'3')">
                      <xsl:attribute name="checked">true</xsl:attribute>
                    </xsl:if>
                    </input>
                    高档装修 </div>
                </div>
                <div class="f2" id="line_utility">
                  <div class="left">配套设施：</div>
                  <div class="right">
                    <ul>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="厨房">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'厨房')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        厨房</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="床">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'床')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        床</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="家具">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'家具')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        家具</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="有线电视">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'有线电视')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        有线电视</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="宽带网">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'宽带网')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        宽带网</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="电话">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'电话')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        电话</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="热水器">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'热水器')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        热水器</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="电视机">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'电视机')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        电视机</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="空调">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'空调')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        空调</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="冰箱">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'冰箱')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        冰箱</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="洗衣机">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'洗衣机')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        洗衣机</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="煤气">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'煤气')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        煤气</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="暖气">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'暖气')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        暖气</li>
                      <li>
                        <input name="{$xml}_Utilities" type="checkbox" value="汽车库">
                        <xsl:if test="contains(string(rows/row/F_Utilities),'汽车库')">
                          <xsl:attribute name="checked">true</xsl:attribute>
                        </xsl:if>
                        </input>
                        汽车库</li>
                    </ul>
                  </div>
                </div>
                <xsl:if test="$param='rent' or $param='rentin'">
                  <div class="f2">
                    <div class="left">最短租期：</div>
                    <div class="right">
                      <input type="radio" name="{$xml}_MinDays" value='365'>
                      <xsl:if test="contains(string(rows/row/F_MinDays),'365')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一年
                      <input type="radio" name="{$xml}_MinDays" value='180'>
                      <xsl:if test="contains(string(rows/row/F_MinDays),'180')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      半年
                      <input type="radio" name="{$xml}_MinDays" value='90'>
                      <xsl:if test="contains(string(rows/row/F_MinDays),'90')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一季 </div>
                  </div>
                  <div class="f2">
                    <div class="left">付款要求：</div>
                    <div class="right">
                      <input name="{$xml}_Payment" type="radio" value="1">
                      <xsl:if test="contains(string(rows/row/F_Payment),'1')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一月一付
                      <input name="{$xml}_Payment" type="radio" value="2">
                      <xsl:if test="contains(string(rows/row/F_Payment),'2')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一季一付
                      <input name="{$xml}_Payment" type="radio" value="3" >
                      <xsl:if test="contains(string(rows/row/F_Payment),'3')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      半年一付
                      <input name="{$xml}_Payment" type="radio" value="4">
                      <xsl:if test="contains(string(rows/row/F_Payment),'4')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一年一付
                      <input name="{$xml}_Payment" type="radio" value="99">
                      <xsl:if test="contains(string(rows/row/F_Payment),'99')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      面议</div>
                  </div>
                  <div class="f2">
                    <div class="left">押金要求：</div>
                    <div class="right">
                      <input name="{$xml}_Deposit" type="radio" value="1">
                      <xsl:if test="contains(string(rows/row/F_Deposit),'1')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      半月租金
                      <input name="{$xml}_Deposit" type="radio" value="2">
                      <xsl:if test="contains(string(rows/row/F_Deposit),'2')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一月租金
                      <input name="{$xml}_Deposit" type="radio" value="3">
                      <xsl:if test="contains(string(rows/row/F_Deposit),'3')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      两月租金
                      <input name="{$xml}_Deposit" type="radio" value="4">
                      <xsl:if test="contains(string(rows/row/F_Deposit),'4')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      一季租金
                      <input name="{$xml}_Deposit" type="radio" value="99">
                      <xsl:if test="contains(string(rows/row/F_Deposit),'99')">
                        <xsl:attribute name="checked">true</xsl:attribute>
                      </xsl:if>
                      </input>
                      面议</div>
                  </div>
                </xsl:if>
                <div class="f2">
                  <div class="left">公交站点：</div>
                  <div class="right">
                    <input type="text" name="{$xml}_bus" value="{rows/row/F_Bus}"/>
                    <span class="t5">例：武林门广场/市府大楼/等，不同公交站点之间请用"/"号隔开。</span></div>
                </div>
              </xsl:if>
              <div class="f2">
                <div class="left">入住时间：</div>
                <div class="right">
                  <input type="text" name="{$xml}_InGoingTime" value="{rows/row/F_InGoingTime}"/>

                </div>
              </div>
              <div class="f2 nobg">
                <div class="left">其他说明：</div>
                <div class="right">
                  <textarea name="{$xml}_Description" style="height:expression((this.scrollHeight>1024)?'1024px':(this.scrollHeight+5)+'px');" onfocus="if(this.value=='&nbsp;')this.value='';" class="text"><xsl:value-of select="rows/row/F_Description"/><xsl:if test="rows/row/F_Description=''">&nbsp;</xsl:if>
</textarea>
                </div>
              </div>
			<div class="f2 nobg">
                <div class="left">标注地图：</div>
                <div class="right">
                <input name="Latlng" class="w250" type="text" value="{rows/row/F_LatLng}" id="{$param}_Latlng" onclick="openMap('ditu','标识地图',this.value)"/>
                </div>
              </div>
            </div>
            <div id="ditu" style="height:400px; width:600px; display:none">&nbsp;</div>
          </div>
          <!--联系人信息-->
          <div style="border:1px solid #f7ce5a ;">
            <div class="f1"><b>联系人信息</b> </div>
            <div class="f2">
              <div class="left"><span class="t1">*</span>联系人：</div>
              <div class="right">
                <input type="text" name="s_Contact" value="{rows/row/F_Contact}" id="s_Contact"/>&nbsp;<span class="t5">联系人必填</span> 
               </div>
            </div>
            <div class="f2">
              <div class="left">&nbsp;联系电话：</div>
              <div class="right">
                <input id="s_Contact_Phone" name="s_Contact_Phone">
                <xsl:attribute name="value"><xsl:value-of select="rows/row/F_Contact_Phone"/></xsl:attribute>
                </input>
                &nbsp;
                <input type="checkbox" name="s_Contact_Mobile_State" value="0">
                <xsl:if test="rows/row/F_Contact_Mobile_State='0'">
                  <xsl:attribute name="checked">true</xsl:attribute>
                </xsl:if>
                </input>
                <span class="t1">防打扰功能(打勾将在前台页面隐藏您的联系电话，显示房产网联系方式)</span></div>
            </div>
            <div class="f2">
              <div class="left"><font color="red">*</font>&nbsp;电子邮箱：</div>
              <div class="right">
                <input name="s_Email">
                <xsl:attribute name="value"><xsl:value-of select="rows/row/F_Email"/> <xsl:if test="count(rows/row)=0"> <xsl:value-of select="page:xLogin('F_Email')"/> </xsl:if> </xsl:attribute>
                </input>
                <span class="t5">将通过邮箱提醒您他人对房源的提问，需确保准确性且必填。</span></div>
            </div>
           <xsl:if test="$param='sell' and page:xLogin('F_Mode')='0'">
            <div class="f2 nobg">
                <div class="left">接受中介：</div>
                <div class="right">
                  <input type="radio" name="{$xml}_IsOnline" value="1">
                  <xsl:if test="rows/row/F_IsOnline='1' or count(rows/row/F_IsOnline)=0">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                 只接受我们认证的中介&nbsp;&nbsp;
                  <input type="radio" name="{$xml}_IsOnline" value="2">
                  <xsl:if test="rows/row/F_IsOnline='2'">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>&nbsp;接受所有中介&nbsp;&nbsp;
                  <input type="radio" name="{$xml}_IsOnline" value="0">
                  <xsl:if test="rows/row/F_IsOnline='0'">
                    <xsl:attribute name="checked">true</xsl:attribute>
                  </xsl:if>
                  </input>
                  &nbsp;不接受&nbsp;<span class="t5">委托中介<xsl:value-of select="$house"/>房源</span> </div>
              </div>
              </xsl:if>
          </div>
          <!--保存按钮-->
          <div class="f2 nobg">
            <input type="button" value="确认保存"  class="btnA" onclick="if(TM.saveContentCmd(this,'form1',0)==1)TM.pList()" />
            &nbsp;
            <input type="button" value="返回" onclick="TM.closeTab()"  class="btnA"/>
            
            <input type="text" name="F_Passport_ID" id="F_Passport_ID" value="{rows/row/F_Passport_ID}" title="用户编号"/>
            <input type="text" name="F_Company_ID" id="F_Company_ID" value="{rows/row/F_Company_ID}" title="中介编号"/>
          </div>
        </div>
      </form>
  </xsl:template>
</xsl:stylesheet>